<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>下载</title>
</head>
<body>
{% if nid %}
    <a href="{% url 'obtain_macs' nid %}">下载文件</a>
{% endif %}
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
</body>
</html>